PATCHES = \
	  history_upgrade_prepare.sql

if DBSCHEMA
all: $(PATCHES)

history_upgrade_prepare.sql: $(top_srcdir)/create/bin/gen_history_upgrade.pl
	$(top_srcdir)/create/bin/gen_history_upgrade.pl mysql > $@
endif

EXTRA_DIST = $(PATCHES)

clean:
	rm -f history_upgrade_prepare.sql

.PHONY: all clean
